<link href="./css/style.css" rel="stylesheet" type="text/css" />
<div class="main">
<div class="usereadd">
	<p class="tt"><a>首页</a>><a href="managerlist.php">管理员列表</a>><span>权限设置</span></p>
	<div class="yhxx">
		<p class="p2"><span>登录账户</span>{$info[auname]}</p>	
		<p class="p2"><span>姓名</span>{$info[atname]}</p>		
	</div>
	<div class="qxlb">
		<form class="uedit">
			<input type="hidden" value="{$id}" name="uid" />
			<p class="p1"><span>商品管理</span></p>
			<ul>
				<li><span>添加商品</span><input type="checkbox" value='1' name="tjsp" {if($pinfo['tjsp'])} checked {/if} /></li>
				<li><span>商品分类</span><input type="checkbox" value='1' name="spfl" {if($pinfo['spfl'])} checked {/if} /></li>				
			</ul>
			<p class="p1"><span>订单管理</span></p>
			<ul>
				<li><span>商城订单</span><input type="checkbox" value='1' name="scdd" {if($pinfo['scdd'])} checked {/if} /></li>
			</ul>
			<p class="p1"><span>会员管理</span></p>
			<ul>
				<li><span>会员列表</span><input type="checkbox" value='1' name="hylb" {if($pinfo['hylb'])} checked {/if} /></li>
				<li><span>留言列表</span><input type="checkbox" value='1' name="lylb" {if($pinfo['lylb'])} checked {/if} /></li>
			</ul>
			<p class="p1"><span>区域代理</span></p>
			<ul>
				<li><span>区域代理</span><input type="checkbox" value='1' name="qydl" {if($pinfo['qydl'])} checked {/if} /></li>
			</ul>
			<p class="p1"><span>财务管理</span></p>
			<ul>
			    <li><span>每日统计</span><input type="checkbox" value='1' name="mrtj" {if($pinfo['mrtj'])} checked {/if} /></li>
			    <li><span>财务记录</span><input type="checkbox" value='1' name="cwjl" {if($pinfo['cwjl'])} checked {/if} /></li>
				<li><span>奖金记录</span><input type="checkbox" value='1' name="jjjl" {if($pinfo['jjjl'])} checked {/if} /></li>
				<li><span>每日分红</span><input type="checkbox" value='1' name="yfhmx" {if($pinfo['gdfh'])} checked {/if} /></li>
				<li><span>提现记录</span><input type="checkbox" value='1' name="txjl" {if($pinfo['txjl'])} checked {/if} /></li>
				<li><span>互转记录</span><input type="checkbox" value='1' name="hzjl" {if($pinfo['hzjl'])} checked {/if} /></li>
				<li><span>会员充值</span><input type="checkbox" value='1' name="hycz" {if($pinfo['hycz'])} checked {/if} /></li>
				<li><span>线下充值</span><input type="checkbox" value='1' name="xxcz" {if($pinfo['xxcz'])} checked {/if} /></li>
			</ul>
			
			<p class="p1"><span>公告管理</span></p>
			<ul>
				<li><span>公告管理</span><input type="checkbox" value='1' name="gggl" {if($pinfo['gggl'])} checked {/if} /></li>
			</ul>
			<p class="p1"><span>系统设置</span></p>
			<ul>
				<li><span>轮播图管理</span><input type="checkbox" value='1' name="lbtsz" {if($pinfo['lbtsz'])} checked {/if} /></li>
			</ul>			
			<button type="button" onclick="madd();">确认授权</button>
		</form>
	</div>
	<script src="./js/jquery.js"></script>
	<script>		
		function madd(){
				$.ajax({
					type:"post",
					dataType:"json",
					url:"/Moudel.php?m=m&a=powerset",
					data:$(".uedit").serialize(),
					success:function(d){
						if(d[0]==0){
							alert(d[1]);
						}
						else{
							alert(d[1]);
							window.location.href='managerlist.php';
						}
					}
				});
			}
	</script>
	
</div>
</div>
<script>
	h1 = $(".main").height();
	h2 = $(".usereadd").height();
	if(h2>h1){
		$(".main").css("height","auto");
	}
</script>